package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 活动奖励规则
 */
@Getter
@Setter
@Document(collection = "activity_reward_rule")
public class ActivityRewardRule extends EntityBase {

    public final static String SECTION = "section";

    public final static String EQUALS = "equals";

    public final static String LEFT_INTERVAL = "leftInterval";

    public final static String RIGHT_INTERVAL = "rightInterval";
    private String activityId;
    private String taskId;
    private String taskName;
    private Boolean qaStatus;
    private Boolean offLineStatus;
    private Boolean volunteerWelfareStatus;
    private Boolean broadcastStatus;
    private Double inviteStart;
    private Double inviteEnd;
    private Double inviteEqu;
    /**
     * section,equals,leftInterval,rightInterval
     */
    private String inviteOperatorType = "section";
    /**
     * 证书名
     */
    private String caName;
    /**
     * 礼品
     */
    private String boon;
    /**
     * 优先级,数字越大优先级越高
     */
    private Integer priority;
    @Transient
    private Double toMatchValue;
    /**
     * 承办单位等级
     */
    private String orgLevel;
    /**
     * 承办单位证书
     */
    private String orgCaName;
    /**
     * 提示语
     */
    private String tips;
    /**
     * 邀请人数提示语
     */
    private String inviteNumTips;
    /**
     * 是否替换
     */
    private Boolean replaced = Boolean.FALSE;

    /**
     * 是否替换证书
     */
    private Boolean replacedCa = Boolean.FALSE;
    /**
     * 序号
     */
    private Double orderNo = 0D;
    /**
     * 序号总数
     */
    private Double orderTotal = 8.0D;
    /**
     * 下一个证书名字
     */
    private String nextCaName;
    /**
     * 下一个证书量级
     */
    private Double nextCaQ;
    /**
     * 志愿时长,默认为0
     */
    protected Integer volunteerDuration = 0;
    /**
     * 单位
     */
    protected String unit = "个";
    /**
     * 描述
     */
    protected String desc;
    /**
     * 当前平台
     */
    protected String platform;
}
